import request from "@/plugins/axios";
// 订单列表
export function listApi(data) {
  return request({
    url: "/shop/order/index",
    method: "post",
    data,
  });
}
// 取消未支付的订单
export function cancelApi(data) {
  return request({
    url: "/shop/order/cancel",
    method: "post",
    data,
  });
}
// 删除未支付的订单
export function orderDelApi(data) {
  return request({
    url: "/shop/order/delete",
    method: "post",
    data,
  });
}
// 订单的发货详情
export function detailApi(data) {
  return request({
    url: "/shop/orderSend/index",
    method: "post",
    data,
  });
}
// 订单发货
export function truckApi(data) {
  return request({
    url: "/shop/orderSend/truck",
    method: "post",
    data,
  });
}
//订单发货项删除
export function orderSendDelApi(data) {
  return request({
    url: "/shop/orderSend/delete",
    method: "post",
    data,
  });
}
//客服备注
export function wechatRemarkApi(data) {
  return request({
    url: "/shop/order/remark",
    method: "post",
    data,
  });
}
//订单改价，未支付状态
export function chgMoneyApi(data) {
  return request({
    url: "/shop/order/chgMoney",
    method: "post",
    data,
  });
}
//订单导出
export function exportApi(data) {
  return request({
    url: "/shop/order/export",
    method: "post",
    data,
    responseType: "blob",
  });
}
//商城订单发货列表
export function orderListApi(data) {
  return request({
    url: "/shop/order/list",
    method: "post",
    data,
  });
}
